package com.dhec.ptms.eqs.model;

// Generated 2016-8-18 17:20:58 by Hibernate Tools 4.0.0

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Surveyissuedetail generated by hbm2java
 */
@Entity
@Table(name = "surveyissuedetail", catalog = "SPECDB")
public class Surveyissuedetail implements java.io.Serializable {

	private Long detailId;
	private Long trackingId;
	private String spcode;
	private Date replyTime;
	private String type;
	private String specialMatters;
	private String backReason;
	private String dandang;
	private Integer surveyId;
	private String dcno;

	public Surveyissuedetail() {
	}

	public Surveyissuedetail(Long trackingId,
			String spcode) {
		this.trackingId = trackingId;
		this.spcode = spcode;
	}

	public Surveyissuedetail(Long trackingId,
			String spcode, Date replyTime, String type, String specialMatters,
			String backReason, String dandang, Integer surveyId) {
		this.trackingId = trackingId;
		this.spcode = spcode;
		this.replyTime = replyTime;
		this.type = type;
		this.specialMatters = specialMatters;
		this.backReason = backReason;
		this.dandang = dandang;
		this.surveyId = surveyId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "detailId", unique = true, nullable = false)
	public Long getDetailId() {
		return this.detailId;
	}

	public void setDetailId(Long detailId) {
		this.detailId = detailId;
	}

	@Column(name = "trackingId", nullable = false)
	public Long getTrackingId() {
		return this.trackingId;
	}

	public void setTrackingId(Long trackingId) {
		this.trackingId = trackingId;
	}

	@Column(name = "spcode", nullable = false, length = 5)
	public String getSpcode() {
		return this.spcode;
	}

	public void setSpcode(String spcode) {
		this.spcode = spcode;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "replyTime", length = 19)
	public Date getReplyTime() {
		return this.replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}

	@Column(name = "type", length = 45)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "specialMatters", length = 200)
	public String getSpecialMatters() {
		return this.specialMatters;
	}

	public void setSpecialMatters(String specialMatters) {
		this.specialMatters = specialMatters;
	}

	@Column(name = "backReason", length = 200)
	public String getBackReason() {
		return this.backReason;
	}

	public void setBackReason(String backReason) {
		this.backReason = backReason;
	}

	@Column(name = "dandang", length = 45)
	public String getDandang() {
		return this.dandang;
	}

	public void setDandang(String dandang) {
		this.dandang = dandang;
	}

	@Column(name = "surveyId")
	public Integer getSurveyId() {
		return this.surveyId;
	}

	public void setSurveyId(Integer surveyId) {
		this.surveyId = surveyId;
	}

	@Column(name = "dcno", length = 20)
	public String getDcno() {
		return dcno;
	}

	public void setDcno(String dcno) {
		this.dcno = dcno;
	}

}
